package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 寝室余额，记录水费和电费的可用余额对象 yxx_dormitory_balances
 * 
 * @author ruoyi
 * @date 2025-03-10
 */
public class YxxDormitoryBalances extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录id */
    private Long id;

    /** 宿舍id */
    @Excel(name = "宿舍id")
    private Long dormId;

    /** 水费余额 */
    @Excel(name = "水费余额")
    private BigDecimal waterBalance;

    /** 电费余额 */
    @Excel(name = "电费余额")
    private BigDecimal electricityBalance;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDormId(Long dormId) 
    {
        this.dormId = dormId;
    }

    public Long getDormId() 
    {
        return dormId;
    }
    public void setWaterBalance(BigDecimal waterBalance) 
    {
        this.waterBalance = waterBalance;
    }

    public BigDecimal getWaterBalance() 
    {
        return waterBalance;
    }
    public void setElectricityBalance(BigDecimal electricityBalance) 
    {
        this.electricityBalance = electricityBalance;
    }

    public BigDecimal getElectricityBalance() 
    {
        return electricityBalance;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dormId", getDormId())
            .append("waterBalance", getWaterBalance())
            .append("electricityBalance", getElectricityBalance())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
